<%@ taglib prefix="s" uri="/struts-tags"%>

<s:set name="adminLoginCheck" value="%{#session.adminLogin}" />
<s:if test="%{#adminLoginCheck!=null}">


	<s:form action="adminDesignerEditSave" namespace="/">

		<s:iterator value="designer">

			<s:textfield label="Name" key="name" />

			<s:textarea label="Address" key="address" />
			<s:textarea label="Background" key="background" />
			<s:select label="Gender" list="#{'Male':'Male', 'Female':'Female'}"
				name="gender" value="gender" />
			<br />
			<s:textfield label="Email" key="email" />
			<s:textfield type="number" label="Phone_number" key="phone_number" />
			<s:textfield label="Education" key="education" />
			<s:textfield label="Bank_account_number" key="bank_account_number" />
			<s:textfield label="Username" key="username" />
			<s:textfield disabled="true" label="Date of Born" key="dobString" />

			<s:select label="Approval" list="#{'false':'false', 'true':'true'}"
				name="approval" value="approval" />
			<br />


		</s:iterator>


		<s:hidden name="id" value="%{id}" />
		<s:submit name="saveChange" value="save">
		</s:submit>
	</s:form>




	<table style="width: 100%">

		<tr style="background: #DDD">
			<td>Upload Product</td>
			<td>Price</td>

			<td>Type</td>
			<td>Date</td>



			<td>Edit</td>

		</tr>


		<s:iterator value="product_lines">

			<tr>
				<td><s:property value="name" /></td>

				<td><s:property value="price" /></td>

				<td><s:property value="type.getName()" /></td>

				<td><s:property value="dateString" /></td>


				<td><s:form action="adminProductDetailEdit" namespace="/">
						<s:hidden name="id" value="%{id}" />
						<s:submit name="editProduct" value="Edit">
						</s:submit>
					</s:form></td>



			</tr>
		</s:iterator>

	</table>




	<!-- 
	 -->
	<!-- 
	 -->
	<!-- 
	 -->
	<!-- 
	 -->
	<!-- 
	 -->
	<!-- 
	 -->
	<!-- 
	 -->
	<!-- 
	 -->

</s:if>

